<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>项目列表</title>
    <?php require 'templates/common/head.html'; ?>
    <style type="text/css">
       .form_d{
           width:500px;
           margin: 20px auto;
       }
    </style>
</head>
<body>
<div class="container-fluid">
    <?php require 'templates/common/nav.html'; ?>
    <div class="panel panel-primary">

        <div class="panel-heading text-center">
            <h3 class="panel-title">修改医师信息</h3>
        </div>

        <form action="index.php?m=doctor_audit&a=update_user_action" method="post" enctype="multipart/form-data">
            <input type="hidden" name="doctor_id" value="<?=$_GET['doctor_id']?>"/>
            <input type="hidden" name="user_id" value="<?=$_GET['user_id']?>"/>
            <input type="hidden" name="page" value="<?=$_GET['page']?>"/>
            <input type="hidden" name="redirect_url" value="<?=$_SERVER['HTTP_REFERER']?>"/>
            <div class="form_d">
                <span>姓名:</span>
                <input type="text" name="name" style="width: 250px" value="<?=$doctor['uname']?>">
            </div>
            <div class="form_d">
                <span>医院:</span>
                <input type="text" name="hospital" style="width: 250px" value="<?=$doctor['医院']?>">
            </div>
            <div class="form_d">
                <span>电话:</span>
                <input type="text" name="telephone" style="width: 250px" value="<?=$doctor['telephone']?>">
            </div>
            <div class="form_d">
                <span>职称:</span>
                <select name="doctor_post">
                    <?php foreach($zhicheng as $k => $v): ?>
                    <option disabled="disabled"><?=$v['name']?></option>
                    <?php foreach($v['childs'] as $vv):?>
                        <option value="<?=$vv?>" <?php if($vv==$doctor['职务']):?> selected ="selected" <?php endif; ?> >&nbsp;&nbsp;&nbsp;&nbsp;<?=$vv?></option>
                    <?php endforeach;?>
                    <?php endforeach;?>
                </select>
               <?=$doctor['职务']?>
            </div>
            <div class="form_d">
                <span>所在科室:</span>
                <select name="professional_field" >
                    <?php foreach($keshi as $v):?>
                    <option disabled="disabled"><?=$v['name']?></option>
                    <?php foreach($v['childs'] as $vv):?>
                    <option value="<?=$vv?>" <?php if($doctor['专业领域'] == $vv):?>selected="selected"<?php endif;?>>&nbsp;&nbsp;&nbsp;&nbsp;
<?=$vv?></option>
                    <?php endforeach;?>
                    <?php endforeach;?>
                </select><?=$doctor['专业领域']?>
            </div>
            <div class="form_d">
                <span>医师资格证号:</span>
                <input type="text" name="certificate_code" style="width: 250px" value="<?=$doctor['资格证号']?>">
            </div>
            <div class="form_d">
                <span >医师资格证:</span> <input type="file" name="certificate">
                <img style="width: 100px;" src="<?=$doctor['照片']?>" alt="医师资格证"/>
            </div>
            <div class="form_d">
                <span>医师头像:</span>
                <input type="file" name="portrait">
                <img style="width: 100px;" src="<?=$doctor['头像']?>" alt="医师头像"/>
            </div>
            <div class="form_d" style="margin :0 auto;">
                <span>专家简介:</span><!-- 加载编辑器的容器 -->
            </div>
            <div class="form_d" style="margin :0 auto;">
                <textarea rows="10" cols="50" name="description"  placeholder="填写个人简历 获得更多关注"  style="text-align:left;"  onBlur="this.style.color='#ccc'"><?=$doctor['简介']?></textarea>
            </div>

            <div class="form_d" style="margin :0 auto;">
                <span>备注:</span>
            </div>
            <div class="form_d" style="margin :0 auto;">
                <textarea rows="10" cols="50" name="note"  placeholder="备注"  style="text-align:left;"  onBlur="this.style.color='#ccc'"><?=$doctor['note']?></textarea>
            </div>
            <div class="form_d">
                <input type="submit" name="okn" value="提交">
            </div>
        </form>

    </div>
</div>

<?php require 'templates/common/foot.html'; ?>
</body>
</html>
